{extend name="public:layout" /}
{block name="title"}碎片列表{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> 碎片列表</li>
            </ol>
        </div>
        <div class="ibox-content">
            <div class="toolbar">
                <div class="pull-left">
                    <a class="btn btn-primary" href="{:url('add')}">
                        <i class="fa fa-plus"></i>&nbsp;添加碎片
                    </a>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <table class="table table-bordered" id="grid">
                        <tr>
                            <th width="50">ID</th>
                            <th>碎片标识</th>
                            <th>碎片名称</th>
                            <th>状态</th>
                            <th>碎片说明</th>
                            <th width="120">操作</th>
                        </tr>
                        {volist name="patchList" id="vo"}
                        <tr>
                            <td align="center">{$vo.patch_id}</td>
                            <td>{$vo.patch_sn}</td>
                            <td>{$vo.patch_title}</td>
                            <td>{$vo['patch_status']==1?'正常':'禁用'}</td>
                            <td>{$vo.patch_desc}</td>
                            <td>
                                <a href="{:url('edit',['patch_id'=>$vo['patch_id']])}">编辑</a>
                                <a href="javascript:;" onclick="doAction(this);"
                                   data-msg="确认删除吗？" data-url="{:url('del')}"
                                   data-params="patch_id={$vo.patch_id}">
                                    删除</a>
                            </td>
                        </tr>
                        {/volist}
                    </table>
                    <div class="page-bar">{$patchList->render()}</div>
                    <div class="clearfix"></div>
                </div>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</div>
{/block}
{block name="script"}{/block}